package com.sto.stoapp.entity;

import com.sto.stoapp.http.BaseMessage;

/**
 * 离线登陆账号
 * 
 * @author mgf
 * 
 */
public class OffLineEntity extends BaseEntity {
	// 工号
	private String jobNumber;
	// 属性位
	private String attribute;
	// 密码
	private String passWord;
	// 名称
	private String name;

	public OffLineEntity() {

	}

	public OffLineEntity(String responseDetail) {
		String[] data = responseDetail.split(BaseMessage.SPILTE
				+ BaseMessage.SEPARATOR);
		if (data.length > 0) {
			jobNumber = data[0].substring(0, 6).trim();
			attribute = data[0].substring(6, 7).trim();
			passWord = data[0].substring(7, 13).trim();
		}
		if (data.length > 1) {
			name = data[1].trim();
		}

	}

	public String getJobNumber() {
		return jobNumber;
	}

	public void setJobNumber(String jobNumber) {
		this.jobNumber = jobNumber;
	}

	public String getAttribute() {
		return attribute;
	}

	public void setAttribute(String attribute) {
		this.attribute = attribute;
	}

	public String getPassWord() {
		return passWord;
	}

	public void setPassWord(String passWord) {
		this.passWord = passWord;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

}
